package com.poxz.algorithm.luogu.p.p1618;

import java.io.*;
import java.util.*;

/**
 * 三连击
 *
 * @author poxz
 */
public class Main {

    static IO IO = new IO();
    public static void main(String[] args) {
        int a = IO.nextInt();
        int b = IO.nextInt();
        int c = IO.nextInt();
        boolean flag = false;
        
        // 特殊情况：A为0时无法计算比例
        if(a == 0){
            IO.println("No!!!");
            IO.close();
            return;
        }
        
        // 只枚举i，根据比例关系计算j和k
        for(int i = 100; i < 1000; i++){
            // 检查是否能整除，确保j和k是整数
            if((b * i) % a != 0 || (c * i) % a != 0){
                continue;
            }
            
            int j = b * i / a;
            int k = c * i / a;
            
            // 检查j和k是否是三位数
            if(j < 100 || j > 999 || k < 100 || k > 999){
                continue;
            }
            
            // 检查数字是否满足条件
            if(isF(i, j, k)){
                flag = true;
                IO.printf("%d %d %d\n", i, j, k);
            }
        }
        
        if(!flag){
            IO.println("No!!!");
        }
        IO.close();
    }

    static boolean isF(int a, int b, int c){
        int[] arr = new int[10];
        
        // 提取所有数字
        while(a > 0){
            arr[a % 10]++;
            a /= 10;
        }
        while(b > 0){
            arr[b % 10]++;
            b /= 10;
        }
        while(c > 0){
            arr[c % 10]++;
            c /= 10;
        }
        
        // 检查0不能出现，1-9每个数字恰好出现一次
        if(arr[0] > 0){
            return false;
        }
        for(int i = 1; i < 10; i++){
            if(arr[i] != 1){
                return false;
            }
        }
        return true;
    }


    static class IO {
        BufferedReader br;
        StringTokenizer st;
        PrintWriter out;

        IO() {
            br = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);
        }

        String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        int[] nextIntArray(int n) {
            int[] arr = new int[n];
            for (int i = 0; i < n; i++) {
                arr[i] = nextInt();
            }
            return arr;
        }

        long[] nextLongArray(int n) {
            long[] arr = new long[n];
            for (int i = 0; i < n; i++) {
                arr[i] = nextLong();
            }
            return arr;
        }

        String[] nextStringArray(int n) {
            String[] arr = new String[n];
            for (int i = 0; i < n; i++) {
                arr[i] = next();
            }
            return arr;
        }

        void print(Object o) {
            out.print(o);
        }


        void println(Object o) {
            out.println(o);
        }

        void println() {
            out.println();
        }

        void printf(String format, Object... args) {
            out.printf(format, args);
        }

        void close() {
            out.flush();
            out.close();
        }
    }
}
